<cfoutput>

<cfdump var="#form#">
  <CFQUERY NAME="getitem" DATASOURCE="#dsn#">
select *
from tblprofiles
where DODAAC = #DODAAC#
</CFQUERY>

<cfdump var="#getitem#">


  <cfquery datasource="#dsn#">
update tblorders
set DODAAC = #getitem.DODAAC#,
pin = #getitem.DODAAC#

where ReceiptNum = #session.ReceiptNum# 
</cfquery>
  <!---<cfset session.DODAAC = "#getitem.DODAAC#">--->
  <cflocation url="findcust.cfm?DODAAC=#getitem.DODAAC#">

</cfoutput>